class KingEntity {
  String? guessDate;
  String? guessStatus;
  String? guessTime;
  String? guestLogo;
  String? guestName;
  String? homeLogo;
  String? homeName;
  String? item;
  String? itemShow;
  List<PlayTypeEntity>? itemShowList;
  String? leagueName;
  int? matchId;
  String? matchTime;
  int? saveCount;
  int? sendCount;
  int? spfLine;
  int? spf;
  int? zjq;
  int? sta;
  List<String>? jqsOdds;
  List<String>? spfOdds;
  int? status;

  KingEntity(
      {this.guessDate,
      this.guessStatus,
      this.guessTime,
      this.guestLogo,
      this.guestName,
      this.homeLogo,
      this.homeName,
      this.item,
      this.itemShow,
      this.itemShowList,
      this.leagueName,
      this.matchId,
      this.matchTime,
      this.saveCount,
      this.sendCount,
      this.spfLine,
      this.spf,
      this.zjq,
      this.sta,
      this.jqsOdds,
      this.spfOdds,
      this.status});

  KingEntity.fromJson(Map<String, dynamic> json) {
    guessDate = json['guessDate'];
    guessStatus = json['guessStatus'];
    guessTime = json['guessTime'];
    guestLogo = json['guestLogo'];
    guestName = json['guestName'];
    homeLogo = json['homeLogo'];
    homeName = json['homeName'];
    item = json['item'];
    itemShow = json['itemShow'];
    if (json['itemShowList'] != null) {
      itemShowList = <PlayTypeEntity>[];
      json['itemShowList'].forEach((v) {
        itemShowList!.add(new PlayTypeEntity.fromJson(v));
      });
    }
    leagueName = json['leagueName'];
    matchId = json['matchId'];
    matchTime = json['matchTime'];
    saveCount = json['saveCount'];
    sendCount = json['sendCount'];
    spfLine = json['spfLine'];
    spf = json['spf'];
    zjq = json['zjq'];
    sta = json['sta'];
    jqsOdds = json['jqsOdds']?.cast<String>();
    spfOdds = json['spfOdds']?.cast<String>();
    status = json['status'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['guessDate'] = this.guessDate;
    data['guessStatus'] = this.guessStatus;
    data['guessTime'] = this.guessTime;
    data['guestLogo'] = this.guestLogo;
    data['guestName'] = this.guestName;
    data['homeLogo'] = this.homeLogo;
    data['homeName'] = this.homeName;
    data['item'] = this.item;
    data['itemShow'] = this.itemShow;
    if (this.itemShowList != null) {
      data['itemShowList'] = this.itemShowList!.map((v) => v.toJson()).toList();
    }
    data['leagueName'] = this.leagueName;
    data['matchId'] = this.matchId;
    data['matchTime'] = this.matchTime;
    data['saveCount'] = this.saveCount;
    data['sendCount'] = this.sendCount;
    data['spfLine'] = this.spfLine;
    data['spf'] = this.spf;
    data['zjq'] = this.zjq;
    data['sta'] = this.sta;
    data['jqsOdds'] = this.jqsOdds;
    data['spfOdds'] = this.spfOdds;
    data['status'] = this.status;
    return data;
  }
}

class PlayTypeEntity {
  PlayTypeDetail? jqs;
  int? matchId;
  int? playType;
  String? playTypeName;
  int? profit;
  List<PlayTypeDetail>? rqSpf;
  PlayTypeDetail? spf;
  int? status;

  PlayTypeEntity(
      {this.jqs,
      this.matchId,
      this.playType,
      this.playTypeName,
      this.profit,
      this.rqSpf,
      this.spf,
      this.status});

  PlayTypeEntity.fromJson(Map<String, dynamic> json) {
    jqs = json['jqs'] != null ? new PlayTypeDetail.fromJson(json['jqs']) : null;
    matchId = json['matchId'];
    playType = json['playType'];
    playTypeName = json['playTypeName'];
    profit = json['profit'];
    if (json['rqSpf'] != null) {
      rqSpf = <PlayTypeDetail>[];
      json['rqSpf'].forEach((v) {
        rqSpf!.add(new PlayTypeDetail.fromJson(v));
      });
    }
    spf = json['spf'] != null ? new PlayTypeDetail.fromJson(json['spf']) : null;
    status = json['status'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.jqs != null) {
      data['jqs'] = this.jqs!.toJson();
    }
    data['matchId'] = this.matchId;
    data['playType'] = this.playType;
    data['playTypeName'] = this.playTypeName;
    data['profit'] = this.profit;
    if (this.rqSpf != null) {
      data['rqSpf'] = this.rqSpf!.map((v) => v.toJson()).toList();
    }
    if (this.spf != null) {
      data['spf'] = this.spf!.toJson();
    }
    data['status'] = this.status;
    return data;
  }
}

class PlayTypeDetail {
  String? line;
  List<PlayTypeItem>? list;
  int? status;
  int? used;

  PlayTypeDetail({this.line, this.list, this.status, this.used});

  PlayTypeDetail.fromJson(Map<String, dynamic> json) {
    line = json['line'];
    if (json['list'] != null) {
      list = <PlayTypeItem>[];
      json['list'].forEach((v) {
        list!.add(new PlayTypeItem.fromJson(v));
      });
    }
    status = json['status'];
    used = json['used'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['line'] = this.line;
    if (this.list != null) {
      data['list'] = this.list!.map((v) => v.toJson()).toList();
    }
    data['status'] = this.status;
    data['used'] = this.used;
    return data;
  }
}

class PlayTypeItem {
  int? f;
  String? i;
  String? kl;
  String? n;
  String? o;
  String? p;
  String? pr;
  int? r;
  int? s;
  int? st;

  PlayTypeItem(
      {this.f,
      this.i,
      this.kl,
      this.n,
      this.o,
      this.p,
      this.pr,
      this.r,
      this.s,
      this.st});

  PlayTypeItem.fromJson(Map<String, dynamic> json) {
    f = json['f'];
    i = json['i'];
    kl = json['kl'];
    n = json['n'];
    o = json['o'];
    p = json['p'];
    pr = json['pr'];
    r = json['r'];
    s = json['s'];
    st = json['st'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['f'] = this.f;
    data['i'] = this.i;
    data['kl'] = this.kl;
    data['n'] = this.n;
    data['o'] = this.o;
    data['p'] = this.p;
    data['pr'] = this.pr;
    data['r'] = this.r;
    data['s'] = this.s;
    data['st'] = this.st;
    return data;
  }
}
